package com.css.fxfzcpxx.modules.serviceCase.repository;

import com.css.fxfzcpxx.modules.categoryView.param.QueParam;
import com.css.fxfzcpxx.modules.categoryView.vo.CategoryViewVo;
import com.css.fxfzcpxx.modules.serviceCase.entity.ServiceCase;
import com.css.fxfzcpxx.modules.serviceCase.param.ClaCasParams;
import com.css.fxfzcpxx.modules.serviceCase.param.QueParams;
import com.css.fxfzcpxx.modules.serviceCase.vo.ServiceCaseVo;

import java.util.List;
import java.util.Map;

public interface ServiceCaseRepository {
    Map<String, Object> getPage(QueParams queParams, int curPage, int pageSize);

    void save(ServiceCase serviceCase);

    String recallOrPublish(String releaseStatus, List<String> asList);

    void delete(List<String> asList);

    ServiceCase findById(String id);

    void publishedDataupdate(ServiceCase serviceCase);

    void unpublishedDataupdate(ServiceCase serviceCase);

    List<ServiceCase> getDataById(List<String> asList);

    List<ServiceCase> getMoveData(QueParams params);

    void meansTypeUpdate(String id, String meansTypeId);

    Map<String, Object> getClaCasPage(ClaCasParams claCasParams, int curPage, int pageSize);

    List<CategoryViewVo> getData(QueParam queParam);

    List<ServiceCase> getLatestCase();

    List<ServiceCaseVo> getRotationChartData();

    void setRotationChart(String id, int sort,String sign);

    void cancelRotationChart(List<String> ids, int sort,String sign);
}
